const urlMap = {
  dev: '//dev.10jqka.com.cn:8080/#/',
  //对应测试环境主域名
  test: '//testm.10jqka.com.cn/vaserviece/webpage/advancedstockpool/index.html#/',
  //对应正式环境主域名
  release: '//vaserviece.10jqka.com.cn/webpage/advancedstockpool/index.html#/',
};

const bgRed = 'rgba(255,41,41,0.20)';
const bgGreen = 'rgba(16,178,70,0.20)';
export const localStorageKey = `b2cweb_charge_gpc_${window.getUserid()}`;
export const localStorageFeatureHomeTips = 'homeTipsTime';

export const BASE_URL = window.getAppVersion()
  ? `client://client.html?action=ymtz^webid=2804^mode=new^url=${location.protocol}${
      urlMap[process.env.VUE_APP_CURRENTMODE]
    }`
  : `${location.protocol}${urlMap[process.env.VUE_APP_CURRENTMODE]}`;

export const STAT = {
  PAGE_ID: 'pdt_gdgc_sy',
  URL_VER: 'SJCGBS-28336',
};

export const VIDEO_LIST = {
  246: {
    url: 'https://playback-hw.myhithink.com/asset/a2fac85adc788a0f3e4e0edb986fb8d8/play_video/7e5bb6e81efa66870f83adb287d75ffb.mp4',
  },
  280: {
    url: 'https://playback-hw.myhithink.com/asset/7b9e2c2b3814f3bd9db71488c3b2e97d/play_video/29602a1e2ddd38edfd8405bd05c086ef.mp4',
  },
  256: {
    url: 'https://playback-hw.myhithink.com/asset/aac4a907999de36cbe062111e74433cc/play_video/fa75c1fc65e57790a3bed8ec7a9781e0.mp4',
  },
  252: {
    url: 'https://playback-hw.myhithink.com/asset/62a6022e29a97a375f51237f92c38efa/play_video/0bf0fd0993f1accb3ec5a81d7c5a4583.mp4',
  },
  250: {
    url: 'https://playback-hw.myhithink.com/asset/a5c8faca8c3bbf132c016e36f06911f5/play_video/84d453ab05479d432cd7836143efb73a.mp4',
  },
  248: {
    url: 'https://playback-hw.myhithink.com/asset/694b05fedcb723f907cb56a46bb10518/play_video/9dbb21532d0ea3118c5560d45a22d365.mp4',
  },
};

export const POOL_LIST = {
  jrds: {
    246: {
      id: 246,
      name: 'AI波段起涨',
      // 订阅id
      subId: 86,
      msgId: 58,
      label: ['积极型', '波段'],
      // 简介
      profile: '精选技术上多头趋势个股',
      // 偏好
      input: '市场震荡或上升期',
      isSubscribed: false,
      imgName: 'gpcId220',
      pushtype: '',
      statId: 'aibdqz',
      desc: '• 结合中线指标精选技术上处于多头趋势的个股进入观察池\n• 基于观察池，结合主力资金、主力趋势雷达、机构活跃度等指标寻找处于波段起涨点的个股进入精选池\n• 稳健短期波段交易为主，持股周期3-10天，适用于喜欢做小波段交易，技术交易喜欢买在起涨点的投资者',
    },
    248: {
      id: 248,
      name: 'AI热点挖掘',
      subId: 78,
      msgId: 50,
      label: ['稳健型', '短波'],
      profile: '挖掘市场主流热点',
      input: '热点题材高度活跃的市场',
      isSubscribed: false,
      imgName: 'gpcId2072_new',
      pushtype: '',
      statId: 'airdwj',
      desc: '• 跟踪消息面，挖掘市场新兴热点或跟随市场主流热点，适用于热点题材高度活跃的市场\n• 低位稳健风格为主，短线波段持股，持股周期3-10天，适用于风险偏好较低的投资者\n• 如果没有市场主流热点，会降低操作频率',
    },
    250: {
      id: 250,
      name: 'AI主力追踪',
      subId: 80,
      msgId: 52,
      label: ['积极型', '波段'],
      profile: '跟随主力资金，寻找波段拐点',
      input: '市场震荡或局部板块上扬',
      isSubscribed: false,
      imgName: 'gpcId118_new',
      pushtype: '',
      statId: 'aizlzz',
      desc: '• 跟随主力资金，寻找波段拐点\n• 右侧交易为主，市场处于震荡市或者局部板块性上扬市场，个股跟随板块或者热点上涨，适用于适合风险偏好较高的投资者，一般持股周期3-10天\n• 围绕市场题材热点为主，挖掘潜力补涨',
    },
    256: {
      id: 256,
      name: 'AI强龙狙击',
      subId: 88,
      msgId: 56,
      label: ['积极型', '短波'],
      profile: '精选热点核心强势股',
      input: '市场热点高度活跃',
      isSubscribed: false,
      imgName: 'gpcId2_new',
      pushtype: '',
      statId: 'aiqljj',
      desc: '• 精选近日题材热点领域的核心强势股，主升行情中继阶段，做空中加油或强龙二波\n• 强势股追击，持股周期一般2-3天，最多不超过一周，风险偏好较高\n• 适合喜欢高度股强势股，能接受超短线交易，能严格执行试错止损的投资者',
    },
    280: {
      id: 280,
      name: 'AI绩优精选',
      subId: 82,
      msgId: 54,
      label: ['稳健型', '波段'],
      profile: '布局绩优股，寻找拐点或二波',
      input: '市场震荡或上升期',
      isSubscribed: false,
      imgName: 'gpcId218',
      pushtype: '',
      statId: 'aijyjx',
      desc: '• 符合近期主线或前期主线回调二波，行业龙头或细分核心，业绩具备优势\n• 一般持股周期1-2周，可能随着市场风格变换调整\n• 稳健型，适合关注业绩，偏好优质龙头与细分龙头的客户',
    },
    252: {
      id: 252,
      name: 'AI热点波段',
      subId: 84,
      msgId: 60,
      label: ['稳健型', '短中结合'],
      profile: '聚焦热点，把握轮动节奏',
      input: '市场热点持续活跃',
      isSubscribed: false,
      imgName: 'gpcId222',
      pushtype: '',
      statId: 'airdbd',
      desc: '• 聚焦市场热点，把握轮动节奏，精选活跃标的低吸高抛\n• 稳健积极，短波+中波，一般持股3-10天，适合风险偏好适中的投资者\n• 权重股行情的适用性偏低',
    },
  },
  cfxf: {
    246: {
      id: 246,
      name: 'AI波段起涨',
      subId: 86,
      msgId: 58,
      label: ['积极型', '波段'],
      profile: '精选技术上多头趋势个股',
      input: '市场震荡或上升期',
      isSubscribed: false,
      imgName: 'gpcId220',
      pushtype: '',
      statId: 'aibdqz',
      desc: '• 结合中线指标精选技术上处于多头趋势的个股进入观察池\n• 基于观察池，结合主力资金、主力趋势雷达、机构活跃度等指标寻找处于波段起涨点的个股进入精选池\n• 稳健短期波段交易为主，持股周期3-10天，适用于喜欢做小波段交易，技术交易喜欢买在起涨点的投资者',
    },
    252: {
      id: 252,
      name: 'AI热点波段',
      subId: 84,
      msgId: 60,
      label: ['稳健型', '短中结合'],
      profile: '聚焦热点，把握轮动节奏',
      input: '市场热点持续活跃',
      isSubscribed: false,
      imgName: 'gpcId222',
      pushtype: '',
      statId: 'airdbd',
      desc: '• 聚焦市场热点，把握轮动节奏，精选活跃标的低吸高抛\n• 稳健积极，短波+中波，一般持股3-10天，适合风险偏好适中的投资者\n• 权重股行情的适用性偏低',
    },
    280: {
      id: 280,
      name: 'AI绩优精选',
      subId: 82,
      msgId: 54,
      label: ['稳健型', '波段'],
      profile: '布局绩优股，寻找拐点或二波',
      input: '市场震荡或上升期',
      isSubscribed: false,
      imgName: 'gpcId218',
      pushtype: '',
      statId: 'aijyjx',
      desc: '• 符合近期主线或前期主线回调二波，行业龙头或细分核心，业绩具备优势\n• 一般持股周期1-2周，可能随着市场风格变换调整\n• 稳健型，适合关注业绩，偏好优质龙头与细分龙头的客户',
    },
  },
  // 服务包专属
  fwb: {
    306: {
      id: 306,
      name: 'AI趋势擒龙',
      // 订阅id
      subId: 1118,
      msgId: 66,
      // 标签
      label: ['积极型', '波段'],
      // 简介
      profile: '精选技术上多头趋势个股',
      // 偏好
      input: '市场震荡或上升期',
      imgName: 'gpcId220',
      statId: 'aiqsql',
      desc: '• 精选市场热点，把握轮动节奏，精选活跃标的高抛低吸\n• 稳健积极，短中结合，适合风格偏好适中的投资者\n• 权重股行情的适用性偏低',
    },
  }
};

export const POOL_TABS = {
  0: {
    key: 0,
    name: '观察池',
    component: 'junior-pool',
  },
  1: {
    key: 1,
    name: '精选池',
    component: 'selected-pool',
  },
  2: {
    key: 2,
    name: '跟踪池',
    component: 'tracking-pool',
  },
};

export const STOCK_STATES = {
  1: {
    name: '买',
    color: '#FF2929',
    bgColor: bgRed,
    borderColor: '#FF2929',
  },
  2: {
    name: '卖',
    color: '#10B246',
    bgColor: bgGreen,
    borderColor: '#10B246',
  },
  3: {
    name: '财',
    color: 'rgba(255,179,0,0.80)',
    bgColor: 'rgba(255,179,0,0.20)',
    borderColor: 'rgba(255,179,0,0.80)',
  },
  4: {
    name: '持',
    color: '#FFB300',
    bgColor: 'rgba(255,179,0,0.20)',
  },
  5: {
    name: '盈',
    color: '#FF2929',
    bgColor: bgRed,
    borderColor: '#FF2929',
  },
  6: {
    name: '损',
    color: '#10B246',
    bgColor: bgGreen,
    borderColor: '#10B246',
  },
  10: {
    name: '增',
    color: '#FF2929',
    bgColor: bgRed,
    borderColor: '#FF2929',
  },
  11: {
    name: '减',
    color: '#10B246',
    bgColor: bgGreen,
    borderColor: '#10B246',
  },
};

export const STOCK_STATUS = {
  1: '备选',
  2: '买入',
  3: '持仓',
  4: '卖出',
  5: '止盈',
  6: '止损',
  7: '买入失败',
  8: '待买入',
  9: '取消买入',
  10: '增仓',
  11: '减仓',
};

// 观察池中股票状态
export const JUNIOR_POOL_STOCK_STATUS = '2,3,8';

// 精选池中股票状态
export const SELECTED_POOL_STOCK_STATUS = '2,3,4,5,6,7,8,9,10,11';

// 跟踪池中股票状态
export const TRACKING_POOL_STOCK_STATUS = '2,3,4,5,6,7,8,9,10,11';
